﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
    public class B : IBaseEntity
    {
        private string _pkvalue;
        #region IBaseEntity 成员

        public string PK
        {
            get { return "ID"; }
        }

        public string PKValue
        {
            get
            {
                return ID;
            }
            set
            {
                ID = value;
            }
        }

        #endregion
        public string ID
        {
            get;
            set;
        }

        public DateTime Invoice
        {
            get;
            set;
        }
        public string X
        {
            get;
            set;
        }

        public System.Collections.Generic.IList<B> GetObjectList(string str)
        {
            IList<B> list = new List<B>();
            list.Add(new B() { Invoice = DateTime.Now, X = str });
            list.Add(new B() { Invoice = DateTime.Now, X = str });
            list.Add(new B() { Invoice = DateTime.Now, X = str });
            list.Add(new B() { Invoice = DateTime.Now, X = str });
            return list;
        }
    }
}
